From cd570b22e857e9689a7946b554fd82e2c15d6620 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Fri, 10 Nov 2006 11:14:42 -0700 Subject: [PATCH] [IA64] fix xencomm_handle_is_null(). It checks only desc->address[0]. However xencomm_add_offset() may sets XENCOMM_INVALID while there left consumable bytes. In such a case xencomm_handle_is_null() returns true wrongly. Signed-off-by: Isaku Yamahata --- xen/arch/ia64/xen/xencomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/xencomm.c b/xen/arch/ia64/xen/xencomm.c index 8f6cec8cb7..3b8e40b5b3 100644 --- a/xen/arch/ia64/xen/xencomm.c +++ b/xen/arch/ia64/xen/xencomm.c @@ -382,6 +382,6 @@ xencomm_handle_is_null( return 1; desc = (struct xencomm_desc *)desc_addr; - return (desc->address[0] == XENCOMM_INVALID); + return (desc->nr_addrs == 0); } } -- 2.30.2